﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rung.EBook.Common.Model
{
    [Serializable]
    public class ChapterBase
    {
        public int Index
        { get; set; }

        public string Url
        { get; set; }

        public string Title
        { get; set; } 

        public string Content
        { get; set; }

        public int Length
        { get { return (this.Content == null) ? 0 : this.Content.Length; } }

        /// <summary>
        /// 由父类生成子类。
        /// </summary>
        /// <param name="bBase"></param>
        public virtual void FromChapterBase(ChapterBase bBase)
        { }
    }
}
